package com.timo.redis.constant;

/**
 * @Description: Redis 相关常量
 * @Author: timo
 * @Date: 2019/8/28 11:14
 */
public class RedisConstant {


    /**
     * @Description: redis 过期时间
     * @Author: timo
     * @Date: 2019/8/28 11:26
     */
    public enum RedisExpiredTime{
        REDIS_EXPIRED_TIME_SECOND_60(60);
        public int expired;

        RedisExpiredTime(int expired) {
            this.expired = expired;
        }
    }



    public enum SubscriptionTopicEnum{
        TIMO_TOPIC("timo"),
        HELLO_TOPIC("hello");

        public String topic;

        SubscriptionTopicEnum(String topic) {
            this.topic = topic;
        }
    }


    public enum SubscriptionMethodEnum{
        MessageSubscriber_onMessage("onMessage");

        public String method;

        SubscriptionMethodEnum(String method) {
            this.method = method;
        }
    }


}
